package com.huike.clues.mapper;

import com.huike.clues.domain.vo.ClueRecordedVo;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 线索跟进记录Mapper接口
 * @date 2021-04-19
 */
public interface TbClueTrackRecordMapper {

    /**
     * 新增线索跟进记录
     * @param
     * @return
     */
    @Insert("INSERT INTO `tb_clue_recorded`(clue_id,subject,recording,level,type,create_time,next_time,false_clue,createby_name) VALUES(#{clueId},#{subject},#{record},#{level},#{type},#{createTime},#{nextTime},#{falseReason},#{createBy});")
    void add(ClueRecordedVo clueRecordedVo);

    /**
     * 根据id 查询线索跟进记录
     * @param clueId
     * @return
     */
   List<ClueRecordedVo> list(Long clueId);

}
